package com.ruoyi.project.gxgw_modules.warning.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 设备异常表 cxj_warning
 * 
 * @author ruoyi
 * @date 2019-01-25
 */
public class Warning extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 序号 */
	private Integer warnId;
	/** 设备号 */
	private Integer macId;
	/** 故障描述 */
	private String warnDetail;
	/** 故障时间 */
	private Date warnHappenTime;
	/** 处理状态 0未处理 1已处理 */
	private Integer dealState;
	/** 处理备注 */
	private String dealRemark;
	/** 故障原因 */
	private String warnReason;
	/** 处理时间 */
	private Date dealTime;
	/** 处理人 */
	private Integer warnDealer;
	/** 故障组件名称 */
	private Integer warnMat;
	/** 删除标记 */
	private String delFlag;

	public void setWarnId(Integer warnId) 
	{
		this.warnId = warnId;
	}

	public Integer getWarnId() 
	{
		return warnId;
	}
	public void setMacId(Integer macId) 
	{
		this.macId = macId;
	}

	public Integer getMacId() 
	{
		return macId;
	}
	public void setWarnDetail(String warnDetail) 
	{
		this.warnDetail = warnDetail;
	}

	public String getWarnDetail() 
	{
		return warnDetail;
	}
	public void setWarnHappenTime(Date warnHappenTime) 
	{
		this.warnHappenTime = warnHappenTime;
	}

	public Date getWarnHappenTime() 
	{
		return warnHappenTime;
	}
	public void setDealState(Integer dealState) 
	{
		this.dealState = dealState;
	}

	public Integer getDealState() 
	{
		return dealState;
	}
	public void setDealRemark(String dealRemark) 
	{
		this.dealRemark = dealRemark;
	}

	public String getDealRemark() 
	{
		return dealRemark;
	}
	public void setWarnReason(String warnReason) 
	{
		this.warnReason = warnReason;
	}

	public String getWarnReason() 
	{
		return warnReason;
	}
	public void setDealTime(Date dealTime) 
	{
		this.dealTime = dealTime;
	}

	public Date getDealTime() 
	{
		return dealTime;
	}
	public void setWarnDealer(Integer warnDealer) 
	{
		this.warnDealer = warnDealer;
	}

	public Integer getWarnDealer() 
	{
		return warnDealer;
	}
	public void setWarnMat(Integer warnMat) 
	{
		this.warnMat = warnMat;
	}

	public Integer getWarnMat() 
	{
		return warnMat;
	}
	public void setDelFlag(String delFlag) 
	{
		this.delFlag = delFlag;
	}

	public String getDelFlag() 
	{
		return delFlag;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("warnId", getWarnId())
            .append("macId", getMacId())
            .append("warnDetail", getWarnDetail())
            .append("warnHappenTime", getWarnHappenTime())
            .append("dealState", getDealState())
            .append("dealRemark", getDealRemark())
            .append("warnReason", getWarnReason())
            .append("dealTime", getDealTime())
            .append("warnDealer", getWarnDealer())
            .append("warnMat", getWarnMat())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
